/**
 * Copyright (C), 2015-2020, XXX有限公司
 * <p>
 * FileName: SystemConfigController
 * <p>
 * Author:   Brill
 * <p>
 * Date:     2020/2/21/021 13:20
 * <p>
 * Description: 系统配置
 * <p>
 * History:
 *
 * <author>          <time>          <version>          <desc>
 * <p>
 * 作者姓名           修改时间           版本号              描述
 */


package cn.yuhh.controller;



import cn.yuhh.entity.Menu;
import cn.yuhh.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 〈一句话功能简述〉<br> 
 * 〈系统配置〉
 *
 * @author Brill

 * @create 2020/2/21/021

 * @since 1.0.0

 */
@RestController
@RequestMapping("system/config")
public class SystemConfigController {

    @Autowired
    private MenuService menuService;

    @GetMapping("menu")
    public List<Menu> getMenusByHrId() {
        return menuService.getMenusByHrId();
    }
}
